import request from '@/utils/request'

// 查询园区仓库标签列表
export function listPark_tags(query) {
  return request({
    url: '/system/park_tags/list',
    method: 'get',
    params: query
  })
}

// 查询园区仓库标签详细
export function getPark_tags(tagId) {
  return request({
    url: '/system/park_tags/' + tagId,
    method: 'get'
  })
}

// 上传park_tags文件
export function uploadPark_tagsFile(data) {
  return request({
    url: '/common/upload',
     method: 'post',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    data: data
  })
}

// 新增园区仓库标签
export function addPark_tags(data) {
  return request({
    url: '/system/park_tags',
    method: 'post',
    data: data
  })
}

// 修改园区仓库标签
export function updatePark_tags(data) {
  return request({
    url: '/system/park_tags',
    method: 'put',
    data: data
  })
}

// 删除园区仓库标签
export function delPark_tags(tagId) {
  return request({
    url: '/system/park_tags/' + tagId,
    method: 'delete'
  })
}
